package com.douyang.controller;

import com.douyang.base.model.PageResult;
import com.douyang.base.model.Result;
import com.douyang.dto.MyOrderListDTO;
import com.douyang.service.PayOrderBaseService;
import com.douyang.vo.MyOrderListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoma
 * @since 2025-03-20
 */
@RestController
@RequestMapping("/trade/payOrderBase")
public class PayOrderBaseController {
    @Autowired
    PayOrderBaseService payOrderBaseService;

    @PostMapping("/getMyOrders")
    public Result<PageResult<MyOrderListVO>> getMyOrders(@RequestBody MyOrderListDTO myOrderListDTO) {
        return Result.success(payOrderBaseService.getMyOrders(myOrderListDTO));

    }
}
